package net.lahuobao.mall.service.impl.admin;

import net.lahuobao.mall.dao.admin.MallManageProductMapper;
import net.lahuobao.mall.dao.admin.MallShopSettlementMapper;
import net.lahuobao.mall.dao.finance.MallReportMapper;
import net.lahuobao.mall.entity.admin.MallProductEntity;
import net.lahuobao.mall.entity.admin.querymodel.MallManageProductQueryEntity;
import net.lahuobao.mall.entity.admin.resultmodel.MallManageProductResultEntity;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import net.lahuobao.mall.service.admin.MallProductServiceI;
import org.jeecgframework.core.common.service.impl.CommonServiceImpl;

import javax.annotation.Resource;
import java.util.List;

@Service("mallProductService")
@Transactional
public class MallProductServiceImpl extends CommonServiceImpl implements MallProductServiceI {

    @Resource
    private MallManageProductMapper mallManageProductMapper;

    /**
     * 查询商品信息
     * @param queryEntity
     * @return
     */
    @Override
    public List<MallManageProductResultEntity> selectProduct(MallManageProductQueryEntity queryEntity) {
        return mallManageProductMapper.selectProduct(queryEntity, getPageBounds());
    }
}